// pages/form/form.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    array: ["长沙", "株洲", "湘潭", "岳阳", "常德", "衡阳", "张家界", "邵阳", "郴州", "娄底"],
    multiSelectorarray: [["第1列第1行", "第1列第2行", "第1列第3行"], ["第2列1行", "第2列第2行"], ["第3列1行", "第3列第2行"]],
    mutivalue: [2, 1, 0],
    regionvalue:["湖南省","长沙市","雨花区"]
  },


  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  mybindinput: function (e) {
    console.log("mybind" + e.detail.value);
  },
  mybindconfirm: function (e) {
    console.log("mybindconfirm" + e.detail.value);
  },
  mybindsubmit: function (e) {
    console.log("mybindsubmit" + e.detail.value.checkboxgroup);
  },
  mybindreset: function (e) {
    console.log("mybindreset");
  },
  mybindchange: function (e) {
    console.log("mybindchange " + e.detail.value);
  },
  radiobindchange: function (e) {
    console.log("radiobindchange " + e.detail.value);
  },
  myswitchbindchange: function (e) {
    console.log("myswitchbindchange " + e.detail.value);
  },
  mybindlinechange: function (e) {
    console.log("mybindlinechange " + e.detail.value);
  },
  mybindchanging: function (e) {
    console.log("mybindchanging " + e.detail.value);
  },
  pickbindchange: function (e) {
    console.log("pickbindchange" + e.detail.value);
  },
  pickbindcancel: function (e) {
    console.log("pickbindcancel");
  },
  multipickbindchange: function (e) {
    console.log("multipickbindchange" + e.detail.value);
  },
  multibindcolumnchange: function (e) {
    console.log("multibindcolumnchange" + e.detail.value);
  },
  multipickbindcancel: function (e) {
    console.log("multipickbindcancel");
  },
  pickerviewbindchange:function(e){
    console.log("pickerviewbindchange"+e.detail.value);
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },
  getUserInfo: function (e) {
    console.log(e.detail.errMsg)
    console.log(e.detail.userInfo)
    console.log(e.detail.rawData)
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})